/**
 * 
 */
package com.surent.model.dbmodel;

import com.avos.avoscloud.AVFile;
import com.avos.avoscloud.AVUser;

/**
 * @describe
 * @author whailong [whailong2010@gmail.com]
 * @date Sep 26, 201411:59:17 PM
 */
public class User extends AVUser {

	private String nickName;
	private String sex;
	private int age;
	private AVFile headIcon;

	public User() {
		super();
	}

	public void iniData(String userName, String password, String email, String nickName, String sex, int age,
			AVFile headIcon) {
		this.put("userName", userName);
		this.put("password", password);
		this.put("email", email);
		this.put("nickName", nickName);
		this.put("sex", sex);
		this.put("age", age);
		this.put("headIcon", headIcon);
	}

	public String getSex() {
		return this.getString("sex");
	}

	public void setSex(String sex) {
		this.put("sex", sex);
	}

	public int getAge() {
		return this.getInt("age");
	}

	public void setAge(int age) {
		this.put("age", age);
	}

	public AVFile getHeadIcon() {
		return this.getAVFile("headIcon");
	}

	public void setHeadIcon(AVFile headIcon) {
		this.put("headIcon", headIcon);
	}

	public void setNickName(String nickName) {
		this.put("nickName", nickName);
	}

	public String getNickName() {
		return this.getString("nickName");
	}
}
